package com.kedacom.freedomLabel.initdata.bean;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 * Created by yao on 2021/3/23.
 * Describe
 */
@Entity
public class RubbishBean {

    @NonNull
    @PrimaryKey(autoGenerate = true)
    private long id;
    public String  category_id;
    public String weight;
    public String weightUnit;
    public String price;
    public String category;
    public Long weighingTime;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getCategory_id() {
        return category_id;
    }

    public void setCategory_id(String category_id) {
        this.category_id = category_id;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }



    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public Long getWeighingTime() {
        return weighingTime;
    }

    public void setWeighingTime(Long weighingTime) {
        this.weighingTime = weighingTime;
    }

    @Override
    public String toString() {
        return "weight=" + weight +
                "&category=" + category +
                "&category_id=" + category_id +
                "&weighingTime=" +new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()).format(weighingTime) ;
    }
}
